package bean;

public class ChiTietDatHang extends Master {

    private int datHangID;
    private int matHangID;
    private int sizeID;
    private int soLuong;
    private float donGia;
    private Size size;
    private MatHang matHang;
    private DatHang datHang;

    public ChiTietDatHang() {
    }

    public int getDatHangID() {
        return datHangID;
    }

    public void setDatHangID(int datHangID) {
        this.datHangID = datHangID;
    }

    public int getMatHangID() {
        return matHangID;
    }

    public void setMatHangID(int matHangID) {
        this.matHangID = matHangID;
    }

    public int getSizeID() {
        return sizeID;
    }

    public void setSizeID(int sizeID) {
        this.sizeID = sizeID;
    }

    public int getSoLuong() {
        return soLuong;
    }

    public void setSoLuong(int soLuong) {
        this.soLuong = soLuong;
    }

    public float getDonGia() {
        return donGia;
    }

    public void setDonGia(float donGia) {
        this.donGia = donGia;
    }

    public Size getSize() {
        return size;
    }

    public void setSize(Size size) {
        this.size = size;
    }

    public MatHang getMatHang() {
        return matHang;
    }

    public void setMatHang(MatHang matHang) {
        this.matHang = matHang;
    }

    public DatHang getDatHang() {
        return datHang;
    }

    public void setDatHang(DatHang datHang) {
        this.datHang = datHang;
    }

    public boolean equals(Object other) {
        if ((this == other)) {
            return true;
        }
        if ((other == null)) {
            return false;
        }
        if (!(other instanceof ChiTietDatHang)) {
            return false;
        }
        ChiTietDatHang castOther = (ChiTietDatHang) other;

        return (this.getDatHangID() == castOther.getDatHangID())
                && (this.getMatHangID() == castOther.getMatHangID())
                && (this.getSizeID() == castOther.getSizeID());
    }
}
